package com.example.demo.sche;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.scheduling.config.ScheduledTaskRegistrar;
import org.springframework.scheduling.support.ScheduledMethodRunnable;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

/**
 * Created by Administrator on 2017-6-30.
 */

@Component
public class Task1 {

    Logger logger = LoggerFactory.getLogger(Task1.class);



    public  void  run(){
//        logger.info(Thread.currentThread()+"task1");


    }
}
